#include <stdio.h>
#include <string.h>   //strerror的头文件
#include <stdlib.h>   //exit的头文件
void func(){
    printf("%s","hello\n");
    printf("%s","hello\n");
    printf("%s","hello\n");
    exit(6);  //无论exit在哪里被调用,进程直接结束
    printf("%s","hello\n");
    printf("%s","hello\n");
    printf("%s","hello\n");
}
int main(){
    func();  //该进程的退出码是6
    return 0;
}
